/**
 * Created by chengxiaolong on 2016/5/27.
 */
package com.invexer.common.puremvc.patterns.mediator {
import org.puremvc.as3.multicore.patterns.mediator.Mediator;
import org.as3commons.logging.ILogger;

import org.as3commons.logging.LoggerFactory;

public class InvexerSimpleMediatorBase extends Mediator{

	private static var logger : ILogger = LoggerFactory.getClassLogger(InvexerSimpleMediatorBase);

	public function InvexerSimpleMediatorBase(mediatorName:String = null, viewComponent:Object = null) {
//		logger.info(this + "constructor")
		super( mediatorName, viewComponent );
	}


	override public function onRegister( ):void{
		logger.info(this + "onRegister")
		super.onRegister();

		onRegisterSubMdt();
	}

	protected function onRegisterSubMdt():void{
//		logger.info(this + "onRegistSubMdt")
	}

	override public function onRemove():void{
		logger.info(this + "onRemove")
		super.onRemove();

		onRemoveSubMdt();
	}

	protected function onRemoveSubMdt():void{
//		logger.info(this + "onRemoveSubMdt")
	}
}
}
